//
//  WelcomeViewController.swift
//  ShouChong
//
//  Created by 陈友文 on 2024/6/11.
//

import UIKit
import SwiftUI

class WelcomeViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        setupView()
    }
    
    private func setupView() {
        let firstView = WelcomeFirstView {
            let sencondVC = WelcomeSecondViewController()
            self.navigationController?.pushViewController(sencondVC, animated: true)
        }
        let hostVC = UIHostingController(rootView: firstView)
        hostVC.view.backgroundColor = UIColor(named: "color_bg")
        hostVC.view.frame = kScreenBounds
        self.view.addSubview(hostVC.view)
    }
    


}
